/**
 * The file enables `@/store/index.js` to import all vuex modules
 * in a one-shot manner. There should not be any reason to edit this file.
 */

// 由于createSharedMutations插件的影响，必须在主进程引入store，mock配置必须在store下才生效
// import '../../mock' // 引入并配置mock
// import { useMock } from "../../utils/onlyMessage";
// useMock && (require('../../mock'));

const files = require.context('.', false, /\.js$/)
const modules = {}

files.keys().forEach(key => {
  if (key === './index.js') return
  modules[key.replace(/(\.\/|\.js)/g, '')] = files(key).default
})

export default modules
